package com.imooc.distributedemo.mapper;

import com.imooc.distributedemo.entity.OrderItem;
import com.imooc.distributedemo.entity.Product;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ProductMapper extends Mapper<Product> {
    void updateProductCount(@Param("purchaseNum") Integer count,@Param("productId") Long productId);

    List<Product> getAllData();
}
